#!/bin/bash
#本脚本用于启动离线建图
source /home/robot/slam_2d/install_isolated/setup.bash

bag_filenames=${1:-'/home/robot/map/mapping.bag'}

 roslaunch slam_ros offline_mapping.launch bag_filenames:=$bag_filenames